\documentclass[12pt]{article}
\title{Eoghan's first latex file}
\date{}
\begin{document}
\maketitle
\section{First Section}
Hi! You've reached can't program won't program hotline.
\section{Second Section}
%\mind the square brackets for closing
To rant about why you hate programming, please press 1.
\section{Third Section}
Your call is very important to us.
\begin{verbatim}
#include <stdio.h>
/*
Comments go here. I keep saying I'm allergic to code. It doesn't help. 
Dammit Jim we need pain, it makes us human
*/

void AgeTest(void);

int main (int argc, char** argv)
{
  AgeTest();
  return 0;
}
void AgeTest()
{
int age;
int counter;
printf("What age are you? >> ");
scanf("%d",&age);
printf("Are you really %d?\n", age);
// == for comparisons
  if(age==22)
  {
    printf("Moo!\n");
    printf("Darth Vader says N");
    for(counter=0; counter<age; counter++)
      printf("o");
        if(counter==age)
         {
           printf("\n");
         }
  }
  else
  {
    printf("Baa!\n");
  
}
\end{verbatim}
\section{Errors already}
Soon your dispising hatred of code will vanish! 
\section{I think I need some help}
Please bear with us. An agent is on the way!
\begin{equation}
\label{eqn:i}
\sum_{i=1}^n i
\end{equation}
Fancy! Labels bind to reference numbers automatically.
EQN.~\ref{eqn:i}
\begin{enumerate}
\item This is item 1
\item This is item 2
\item This could go on for some time if you let it
\end{document}
